<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        var A = 15;
        var B = 14;
        if (A > B) {
            console.log(A + "大于" + B);
        } else if (A < B) {
            console.log(A + "小于" + B);
        } else {
            console.log(A + "等于" + B);
        }
    </script>
</body>

</html>